home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Found / FWString / Include / SLLocale.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  1.6 KB  |  60 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                SLLocale.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef SLLOCALE_H
  11. #define SLLOCALE_H
  12.  
  13. #ifndef FWODEXCE_H
  14. #include "FWODExce.h"
  15. #endif
  16.  
  17. #include "FWTxtTyp.xh"
  18.  
  19. //========================================================================================
  20. //    Global Functions
  21. //========================================================================================
  22.  
  23. // Export or Import functions for CFM-68K [sfu]
  24.  
  25. #if defined(FW_ODFLIB_IMPORT)
  26. #pragma import on
  27. #elif defined(FW_ODFLIB)
  28. #pragma export on
  29. #endif
  30.  
  31. FW_EXTERN_C_BEGIN
  32.  
  33. FW_Boolean FW_LocaleIsSingleByte(FW_Locale locale);
  34.     // Return true if all characters in this locale are 1 byte wide.
  35.  
  36. #if 0
  37. FW_Boolean FW_FindCharacterInTextRun(
  38.                     char* textRun,                 // start of text run (must be single locale)
  39.                     FW_ByteCount length,         // length of text run, in bytes
  40.                     FW_Locale locale,             // locale of text run
  41.                     FW_ByteCount startPosition,    // offset from beginning of text to start search
  42.                     FW_FindDirection direction,    // FW_kForwards if searching forwards, FW_kBackwards if searching backwards
  43.                     FW_LChar character,            // character to search for
  44.                     FW_ByteCount* foundPosition    // position at which character is found, if it exists
  45.                     );
  46.     // returns false if the character is not found
  47. #endif
  48.  
  49. FW_EXTERN_C_END
  50.  
  51. // For CFM-68K [sfu]
  52.  
  53. #if defined(FW_ODFLIB_IMPORT)
  54. #pragma import off
  55. #elif defined(FW_ODFLIB)
  56. #pragma export off
  57. #endif
  58.  
  59. #endif
  60.